package test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class Person {
    @Autowired
    //@Qualifier("road")
    @Qualifier("stone")
    private Car car;
    public void work(){
        car.drive();
        System.out.println("去上班咯~我是究极无敌大牛马呜呜呜呜");
    }
}
